package compoundDB.database.container;

import static org.junit.Assert.*;
import org.junit.Test;

import compoundDB.database.container.ColumnField;
import compoundDB.database.enumeration.DataType;

/**
 * This class tets the ColumnFieldTest class
 * 
 * @author Kohl Bromwich
 */
public class ColumnFieldTest
{
	@Test
	public void testGets()
	{
		ColumnField col1 = new ColumnField("name1", DataType.BYTES, 5);
		ColumnField col2 = new ColumnField("name2", DataType.FLOAT, 3);
		
		assertTrue(col1.getName().equals("name1"));
		assertTrue(col2.getName().equals("name2"));
		
		assertTrue(col1.getColumnNumber() == 5);
		assertTrue(col2.getColumnNumber() == 3);
		
		assertTrue(col1.getDataType().equals(DataType.BYTES));
		assertTrue(col2.getDataType().equals(DataType.FLOAT));
	}
}
